/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package wikitrafic.iovanalex.ro;

import java.util.ArrayList;

/**
 *
 * @author Administrator
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        ConfUtil cu=new ConfUtil("wikitrafic.properties");
        

        TraceLogParser tp=new TraceLogParser(cu.getProperty("tracepath")+"/0_20042009.log");
        TraceLog tl=tp.parse(); //entire log of traces from one user
        //ArrayList <TraceItem> titems=tl.analyseLog();

        DbComm tdb=new DbComm(tl); //this is the trace log before being inserted into DB

        tdb.store();
        System.out.println("GATA");


//        OK - tested
//        GPSPoint p1= new GPSPoint(45.804196, 21.225500);
//        GPSPoint p2= new GPSPoint(45.804196, 21.225600);
//        double distance=p1.getDistanceInMeters(p1, p2);
//        System.out.println(distance);
        
    }

}
